
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>
    注册页面
    </title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css">
  <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
  <script src="https://cdn.bootcss.com/popper.js/1.12.5/umd/popper.min.js"></script>
  <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>
<body>



<!-- <form  name="register" action="index.php?c=Users&a=registerResult" method="post">
用户名 : <input type="text" name="username"><br>
密码:    <input type="password" name="password"><br>
 权限验证:<input type="password" name="admin"> -->
<!-- <p> -->
<?php 
// echo($error)
 ?>
 <!-- </p> -->
<!-- <input type="submit" value="注册"> -->
<!-- </form>  -->



<div class="container" style="margin-top: 100px">
<div class="row">
<div class="col"></div>
<div class="col">
  <h2> 注册页面 </h2>
  <form  name="register" action="index.php?c=Users&a=registerResult" method="post">
    <div class="form-group">
    <label for="username">用户名 : </label>
      <input type="text" class="form-control" id="username" name="username" placeholder="填写用户名" required>
    </div>
    <div class="form-group">
      <label for="password">密码:</label>
      <input type="password" class="form-control" id="password" name="password" placeholder="输入密码" required>
    </div>
    <button type="submit" class="btn btn-primary  btn-block" >注册</button>
  </form>
  
  <div id = 'error'  class="alert alert-danger" style="
  <?php
  if ($error === "") {
    echo("display : none");
  }
  ?>" >
    <strong><?php echo($error)
 ?></strong> 
  </div>
  </div>
  <div class="col"></div>
  </div >
</div>

 
</body>
</html>

